package com.itetchologyandenglish.home.mapper;

import com.itetchologyandenglish.home.enetity.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    List<News> getNewsByNewstitleAndNewsdate(@Param("newstitle") String newstitle, @Param("newsdate") String newsdate,@Param("deflag")Integer deflag);

    News findNewsById(Integer id);

    int updatenews(@Param("news")News news);

    int delnews(Integer id);

    int savenews(@Param("news")News news);
}
